﻿using Koonsoft.HYCRM.DAL;
using Koonsoft.HYCRM.Model;
using log4net;

namespace Koonsoft.HYCRM.BLL
{
    public class OrderTrackBLL
    {
        private ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

        private OrderTrackDAL _dal = null;

        protected OrderTrackDAL DAL
        {
            get
            {
                if (_dal == null)
                {
                    _dal = new OrderTrackDAL();
                }

                return _dal;
            }
        }

        /// <summary>
        /// 新增订单轨迹
        /// </summary>
        /// <param name="orderID"></param>
        /// <param name="empolyeeID"></param>
        /// <param name="orderStatus"></param>
        /// <param name="result"></param>
        /// <param name="remark"></param>
        public void AddTrack(string orderID, int empolyeeID, OrderStatus orderStatus, int result, string remark)
        {
            DAL.AddTrack(orderID,empolyeeID,orderStatus,result,remark);
        }
    }
}
